package com.cinc.ebc.mm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.mm.entity.MmStockTransferDetail;
import com.cinc.ebc.mm.entity.MmStockTransfer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.mm.model.MmStockTransferDetailModel;
import com.cinc.ebc.mm.vo.MmStockTransferDetailPage;


import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 库存调拨
 * @Author: jeecg-boot
 * @Date:   2022-06-21
 * @Version: V1.0
 */
public interface IMmStockTransferService extends IService<MmStockTransfer> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(MmStockTransfer mmStockTransfer,List<MmStockTransferDetail> mmStockTransferDetailList) throws Exception;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(MmStockTransfer mmStockTransfer,List<MmStockTransferDetail> mmStockTransferDetailList) throws Exception;
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id) throws Exception;
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList) throws Exception;

	/**
	 * 明细分页查询
	 *
	 * @param page
	 * @param detailPage
	 * @return void
	 * @throws
	 */
    void detailPage(Page<MmStockTransferDetailModel> page, MmStockTransferDetailPage detailPage);

    /**
     * 明细列表查询
     *
     * @param detailPage
     * @return java.util.List<com.cinc.ebc.mm.model.MmStockTransferDetailModel>
     * @throws
     */
	List<MmStockTransferDetailModel> detailList(MmStockTransferDetailPage detailPage);

	/**
	 * 调入确认
	 *
	 * @param mmStockTransferPageList
	 * @return void
	 * @throws Exception
	 */
    void confirmDetail(List<MmStockTransferDetailPage> mmStockTransferPageList) throws Exception;

	void delDetailBatch(List<String> asList) throws Exception;

	void delDetail(String id) throws Exception;
}
